//
//  MFWTask.h
//  MFWSdk
//
//  Created by Song Xiaofeng on 13-9-10.
//  Copyright (c) 2013年 Mafengwo Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

@class MFWDataIdentifier;
@interface MFWTask : NSObject
{
    MFWDataIdentifier *_dataIdentifier;
    
    MFWDataRequestType _dataRequestType;
}
@property(nonatomic, strong)MFWDataIdentifier *dataIdentifier;
@property(nonatomic, assign)MFWDataRequestType dataRequestType;// refresh or getmore
@property(nonatomic, copy)NSArray *itemArrayData;
@property(nonatomic, strong)id userData;// any self-defined data should go with task

- (void)cancel;
@end

@interface MFWTask(RelativeData)
- (id)relativeDataModel;
- (MFWJson*)relativeModelJson;
@end
